Meaning of the word "there is many a good cock come out of a tattered bag" in English

What does "there is many a good cock come out of a tattered bag" mean in English? Explore the meaning, pronunciation, and specific usage of this word with Lingoland.

there is many a good cock come out of a tattered bag

US /ðɛr ɪz ˈmɛni ə ɡʊd kɑk kʌm aʊt əv ə ˈtætərd bæɡ/
UK /ðɛər ɪz ˈmɛni ə ɡʊd kɒk kʌm aʊt əv ə ˈtætəd bæɡ/
"there is many a good cock come out of a tattered bag" picture

Idiom

a person's humble origins or poor appearance do not prevent them from being talented, successful, or of good character

Example:
He grew up in a very poor neighborhood but became a world-class surgeon; there is many a good cock come out of a tattered bag.
Don't dismiss that scruffy-looking student; there is many a good cock come out of a tattered bag.